package com.fpmsa.officeweb.dao;

import com.baomidou.mybatisplus.mapper.BaseMapper;
import com.baomidou.mybatisplus.plugins.Page;
import com.fpmsa.officeweb.model.Member;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 会员表 Mapper 接口
 * </p>
 *
 * @author huangyuehong123
 * @since 2018-06-25
 */
public interface MemberMapper extends BaseMapper<Member> {

    List<Map<String,Object>> getAllMembers(@Param("page") Page page, @Param("condition") String condition, @Param("orderByField") String orderByField, @Param("isAsc") boolean asc);

    // 根据类型获取会员数
    Integer getCountByType(@Param("type") Integer type);
}
